package com.abss.vote.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Date;

/**
 * 用户投票信息表
 */
public class UserVotesInfo {

    @JsonProperty("ID")
    private Integer ID;

    @JsonProperty("USER_ID")
    private String USER_ID;//用户ID

    @JsonProperty("LEFT_VOTES")
    private Integer LEFT_VOTES;//今日剩余投票数 获取该值时 应该根据最后更新时间 来修改并刷新为最新的值 ，所有在前一天及之前的数据v都要刷新为最大值 时间在今天之内的无需刷新

    @JsonProperty("ACTIVITY_ID")
    private Integer ACTIVITY_ID;//活动 ID

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy年MM月dd日 HH:mm:ss")
    private Date LAST_UPDATE_TIME;//最后更新时间

    @JsonProperty("EVALUATE_RESULT")
    private Integer EVALUATE_RESULT;

    @JsonProperty("EVALUATE_CONTENT")
    private String EVALUATE_CONTENT;

    @JsonProperty("IS_ANONYMOUS")
    private Integer IS_ANONYMOUS;

    @JsonProperty("USER_PICTURE")
    private String USER_PICTURE;

    @JsonProperty("USER_NAME")
    private String USER_NAME;

    @JsonProperty("APPRAISAL_USER_ID")
    private String APPRAISAL_USER_ID;

    public Integer getID() {
        return ID;
    }

    public void setID(Integer ID) {
        this.ID = ID;
    }

    public String getUSER_ID() {
        return USER_ID;
    }

    public void setUSER_ID(String USER_ID) {
        this.USER_ID = USER_ID == null ? null : USER_ID.trim();
    }

    public Integer getLEFT_VOTES() {
        return LEFT_VOTES;
    }

    public void setLEFT_VOTES(Integer LEFT_VOTES) {
        this.LEFT_VOTES = LEFT_VOTES;
    }

    public Integer getACTIVITY_ID() {
        return ACTIVITY_ID;
    }

    public void setACTIVITY_ID(Integer ACTIVITY_ID) {
        this.ACTIVITY_ID = ACTIVITY_ID;
    }

    public Date getLAST_UPDATE_TIME() {
        return LAST_UPDATE_TIME;
    }

    public void setLAST_UPDATE_TIME(Date LAST_UPDATE_TIME) {
        this.LAST_UPDATE_TIME = LAST_UPDATE_TIME;
    }

    public Integer getEVALUATE_RESULT() {
        return EVALUATE_RESULT;
    }

    public void setEVALUATE_RESULT(Integer EVALUATE_RESULT) {
        this.EVALUATE_RESULT = EVALUATE_RESULT;
    }

    public String getEVALUATE_CONTENT() {
        return EVALUATE_CONTENT;
    }

    public void setEVALUATE_CONTENT(String EVALUATE_CONTENT) {
        this.EVALUATE_CONTENT = EVALUATE_CONTENT;
    }

    public Integer getIS_ANONYMOUS() {
        return IS_ANONYMOUS;
    }

    public void setIS_ANONYMOUS(Integer IS_ANONYMOUS) {
        this.IS_ANONYMOUS = IS_ANONYMOUS;
    }

    public String getUSER_PICTURE() {
        return USER_PICTURE;
    }

    public void setUSER_PICTURE(String USER_PICTURE) {
        this.USER_PICTURE = USER_PICTURE;
    }

    public String getUSER_NAME() {
        return USER_NAME;
    }

    public void setUSER_NAME(String USER_NAME) {
        this.USER_NAME = USER_NAME;
    }

    public String getAPPRAISAL_USER_ID() {
        return APPRAISAL_USER_ID;
    }

    public void setAPPRAISAL_USER_ID(String APPRAISAL_USER_ID) {
        this.APPRAISAL_USER_ID = APPRAISAL_USER_ID;
    }

    @Override
    public String toString() {
        return "UserVotesInfo{" +
                "ID=" + ID +
                ", USER_ID='" + USER_ID + '\'' +
                ", LEFT_VOTES=" + LEFT_VOTES +
                ", ACTIVITY_ID=" + ACTIVITY_ID +
                ", LAST_UPDATE_TIME=" + LAST_UPDATE_TIME +
                '}';
    }
}

